package com.hjc.springbootstudyweb.entity;

/**
 * Created by IntelliJ IDEA.
 * User: HJC
 * Date: 2019/12/1
 * Time: 21:50
 * To change this template use File | Settings | File Templates.
 */
public class ProductModel {
    private int pid;
    private String pname;
    private String type;
    private float price;
    private int repertory;
    private String describes;

    public ProductModel() {
    }

    public ProductModel(int pid, String pname, String type, float price, int repertory, String describes) {
        this.pid = pid;
        this.pname = pname;
        this.type = type;
        this.price = price;
        this.repertory = repertory;
        this.describes = describes;
    }

    @Override
    public String toString() {
        return "ProductModel{" +
                "pid=" + pid +
                ", pname=" + pname +
                ", type='" + type + '\'' +
                ", price=" + price +
                ", repertory=" + repertory +
                ", describes='" + describes + '\'' +
                '}';
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public int getRepertory() {
        return repertory;
    }

    public void setRepertory(int repertory) {
        this.repertory = repertory;
    }

    public String getDescribes() {
        return describes;
    }

    public void setDescribes(String describes) {
        this.describes = describes;
    }
}
